import time

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

driver = webdriver.Chrome()
driver.get("https://cp.kuaishou.com/article/publish/video?origin=www.kuaishou.com")
driver.implicitly_wait(20)
driver.find_element(By.XPATH,'//*[@id="app"]/div[1]/div/div[2]/div[1]/a').click()
driver.find_element(By.XPATH,'//*[@id="login-form"]/div/div/div[2]/div[2]/div[1]/div/div/input').send_keys('16620145498')
driver.find_element(By.XPATH,'//*[@id="login-form"]/div/div/div[2]/div[2]/div[2]/div/div/input').send_keys('jiliu26333378')
driver.find_element(By.XPATH,'//*[@id="login-form"]/div/div/div[2]/div[2]/button').click()
driver.find_element(By.XPATH,'//*[@id="app"]/div[1]/div[1]/div/section/ul/div/span').click()
driver.find_element(By.XPATH,'//*[@id="onvideo_creator_platform"]/div/input').send_keys(r"C:\Users\dengjiaze123456\Desktop\1.mp4")
WebDriverWait(driver,20).until(EC.staleness_of( driver.find_element(By.XPATH,'//*[@id="onvideo_creator_platform"]/div/div[3]/div[2]/div[2]/div/div[3]/span[3]')))
print(111)
# driver.find_element(By.XPATH,'//*[@id="onvideo_creator_platform"]/div/div[3]/div[2]/div[4]/div[2]/div[7]/button[1]').click()

input()
# 退出
driver.quit()
